﻿using Adalbertus.BudgetPlanner.Domain;
using FluentNHibernate.Mapping;

namespace Adalbertus.BudgetPlanner.Infrastructure.Mapping
{
    public class ExpenseMap : ClassMap<Expense>
    {
        public ExpenseMap()
        {
            Id(x => x.Id);

            Map(x => x.Value);
            Map(x => x.Description);
            Map(x => x.Date);

            References(x => x.Flow);
        }
    }
}
